package com.uniriho.lxr0811_7300_bl.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

abstract class BaseActivity<V:ViewDataBinding,VM:ViewModel>(var layoutID:Int,var viewModel:VM): AppCompatActivity() {
    /*private lateinit var mDataBinding:V
    private lateinit var mViewModel: VM
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(getLayoutID())
        mViewModel = ViewModelProvider(this).get(viewModel::class.java)
        mDataBinding = DataBindingUtil.setContentView(this,layoutID)
        initView()
        initData()
        initEvent()
    }

    open fun initEvent() {}

    open fun initData() {}

    open fun initView() {}

    abstract fun getLayoutID():Int*/
}